<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>  
  <base href="<%=basePath%>">
 <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Log in with your account</title>

    <link href="css/admin/bootstrap.min.css" rel="stylesheet">
    <link href="css/admin/common.css" rel="stylesheet">

</head>

<body>
<div class="container" >
    <form:form method="post" action="admin/login" class="form-signin" modelAttribute="auser">
        <h2 class="form-heading">农夫山泉后台管理系统</h2>
     <div class="form-group">
                 <form:input path="aname" type="text" class="form-control" 
                   autofocus="true"/>
                   <div class="form-group">
                </div>
            <form:password path="apwd"  class="form-control" />
             <div class="form-group">
                     </div>
           
            <button class="btn btn-lg btn-primary btn-block" type="submit">Log In</button>
            <h4 class="text-center"><a href="toRegister">Create an account</a></h4>
				
                
            </div>
      
			${msg}
  
    </form:form>
	

</div>

<script src="js/bootstrap.min.js"></script>

</body>
</html>
